<?php

namespace Blog\Lib\Controller;

use Hx\Mvc\Controller\Base;

/**
 * Class View
 * @property \Blog\Model\Category categoryModel
 * @property \Blog\Model\Blog blogModel
 * @property \Blog\Model\User userModel
 * @property \Blog\Model\Option optionModel
 * @package Blog\Lib\Controller
 */
class View extends Base {

    protected $options;

    public function __construct() {
        $this->options = $this->optionModel->getAutoLoad();
    }

    protected function assignOption() {
        $this->view->assign('blogOption', $this->options['blog']);
    }

    protected function assignPageTitle($string) {
        $this->view->assign('pageTitle', $string);
    }
}